package com.java.actual.snake;

import java.awt.Color;
import java.awt.geom.Ellipse2D;

public class Cell {
	
	private int x;
	
	private int y;
	
	private int size;
	
	private Color color;

	public Color getColor() {
		return color;
	}

	public void setColor(Color color) {
		this.color = color;
	}

	public int getX() {
		return x;
	}

	public void setX(int x) {
		this.x = x;
	}

	public int getY() {
		return y;
	}

	public void setY(int y) {
		this.y = y;
	}

	public int getSize() {
		return size;
	}

	public void setSize(int size) {
		this.size = size;
	}

	public Cell(int x, int y, int size,Color color) {
		super();
		this.x = x;
		this.y = y;
		this.size = size;
		this.color = color;
	}
	
	//画圆
	public Ellipse2D getShape(){
		return new Ellipse2D.Double(x*StagePanel.GAP,y*StagePanel.GAP,size,size);
	}
}
